package com.eduhzy.ttw.commonsdk.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author xubo
 * @date 2018/7/20 16:46
 */
public class PlatformNoticeData implements Parcelable {

    /**
     * appId : 1
     * appName : 人人通空间
     * content : 这是长沙市教育局第一条消息
     * hasLinkBack : 0
     * hasRead : 0
     * inboxId : 1049843600512315396
     * linkBack :
     * messageTypeId : 200
     * messageTypeName : 通知公告
     * msgId : 1049843578165063681
     * sendDate : 1539137194000
     * senderId : 1
     * senderRealName : 管理员
     * title : 长沙市教育局第一条消息
     */

    private int appId;
    private String appName;
    private String content;
    private int hasLinkBack;
    private int hasRead;
    private String inboxId;
    private String linkBack;
    private int messageTypeId;
    private String messageTypeName;
    private long msgId;
    private long sendDate;
    private int senderId;
    private String senderRealName;
    private String title;
    private String openType;
    private String linkUrl;
    /**
     * dealStatus : 0
     * readingDate : 1539675379000
     * tag :
     */

    private int dealStatus;
    private long readingDate;
    private String tag;

    public String getOpenType() {
        return openType;
    }

    public void setOpenType(String openType) {
        this.openType = openType;
    }

    public String getLinkUrl() {
        return linkUrl;
    }

    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl;
    }

    public int getAppId() {
        return appId;
    }

    public void setAppId(int appId) {
        this.appId = appId;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getHasLinkBack() {
        return hasLinkBack;
    }

    public void setHasLinkBack(int hasLinkBack) {
        this.hasLinkBack = hasLinkBack;
    }

    public int getHasRead() {
        return hasRead;
    }

    public void setHasRead(int hasRead) {
        this.hasRead = hasRead;
    }

    public String getInboxId() {
        return inboxId;
    }

    public void setInboxId(String inboxId) {
        this.inboxId = inboxId;
    }

    public String getLinkBack() {
        return linkBack;
    }

    public void setLinkBack(String linkBack) {
        this.linkBack = linkBack;
    }

    public int getMessageTypeId() {
        return messageTypeId;
    }

    public void setMessageTypeId(int messageTypeId) {
        this.messageTypeId = messageTypeId;
    }

    public String getMessageTypeName() {
        return messageTypeName;
    }

    public void setMessageTypeName(String messageTypeName) {
        this.messageTypeName = messageTypeName;
    }

    public long getMsgId() {
        return msgId;
    }

    public void setMsgId(long msgId) {
        this.msgId = msgId;
    }

    public long getSendDate() {
        return sendDate;
    }

    public void setSendDate(long sendDate) {
        this.sendDate = sendDate;
    }

    public int getSenderId() {
        return senderId;
    }

    public void setSenderId(int senderId) {
        this.senderId = senderId;
    }

    public String getSenderRealName() {
        return senderRealName;
    }

    public void setSenderRealName(String senderRealName) {
        this.senderRealName = senderRealName;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public PlatformNoticeData() {
    }

    public int getDealStatus() {
        return dealStatus;
    }

    public void setDealStatus(int dealStatus) {
        this.dealStatus = dealStatus;
    }

    public long getReadingDate() {
        return readingDate;
    }

    public void setReadingDate(long readingDate) {
        this.readingDate = readingDate;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.appId);
        dest.writeString(this.appName);
        dest.writeString(this.content);
        dest.writeInt(this.hasLinkBack);
        dest.writeInt(this.hasRead);
        dest.writeString(this.inboxId);
        dest.writeString(this.linkBack);
        dest.writeInt(this.messageTypeId);
        dest.writeString(this.messageTypeName);
        dest.writeLong(this.msgId);
        dest.writeLong(this.sendDate);
        dest.writeInt(this.senderId);
        dest.writeString(this.senderRealName);
        dest.writeString(this.title);
        dest.writeString(this.openType);
        dest.writeString(this.linkUrl);
        dest.writeInt(this.dealStatus);
        dest.writeLong(this.readingDate);
        dest.writeString(this.tag);
    }

    protected PlatformNoticeData(Parcel in) {
        this.appId = in.readInt();
        this.appName = in.readString();
        this.content = in.readString();
        this.hasLinkBack = in.readInt();
        this.hasRead = in.readInt();
        this.inboxId = in.readString();
        this.linkBack = in.readString();
        this.messageTypeId = in.readInt();
        this.messageTypeName = in.readString();
        this.msgId = in.readLong();
        this.sendDate = in.readLong();
        this.senderId = in.readInt();
        this.senderRealName = in.readString();
        this.title = in.readString();
        this.openType = in.readString();
        this.linkUrl = in.readString();
        this.dealStatus = in.readInt();
        this.readingDate = in.readLong();
        this.tag = in.readString();
    }

    public static final Creator<PlatformNoticeData> CREATOR = new Creator<PlatformNoticeData>() {
        @Override
        public PlatformNoticeData createFromParcel(Parcel source) {
            return new PlatformNoticeData(source);
        }

        @Override
        public PlatformNoticeData[] newArray(int size) {
            return new PlatformNoticeData[size];
        }
    };
}
